package cn.com.app;

import cn.com.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;


@Configuration
public class Appconfig {
	public static void main(String[] args) {

	}

	@Bean(name="person",initMethod = "myInit",destroyMethod = "myDestory")
	public Person entitlement() {
		Person ent= new Person();
		ent.setName("Entitlement");
		ent.setPhone(1);
		return ent;
	}
}
